From f7d50b68c32ed165a9bb70ae9a7994fb1c7b68a8 Mon Sep 17 00:00:00 2001 From: "awilliam@ldap.hp.com" Date: Tue, 25 Apr 2006 10:49:33 -0700 Subject: [PATCH] [IA64] message of elf_sanity_check as x86 This small patch output message of elf_sanity_check as x86. Currently this panic is the only following message. (XEN) *** LOADING DOMAIN 0 *** (XEN) (XEN) **************************************** (XEN) Panic on CPU 0: (XEN) Could not set up DOM0 guest OS (XEN) **************************************** (XEN) (XEN) Reboot in five seconds... (XEN) machine_restart called: spinning.... Signed-off-by: Akio Takebe --- xen/arch/ia64/xen/domain.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xen/arch/ia64/xen/domain.c b/xen/arch/ia64/xen/domain.c index 3b23e1a3b7..67c9b5f0e3 100644 --- a/xen/arch/ia64/xen/domain.c +++ b/xen/arch/ia64/xen/domain.c @@ -751,7 +751,12 @@ unsigned long domain_mpa_to_imva(struct domain *d, unsigned long mpaddr) // see arch/x86/xxx/domain_build.c int elf_sanity_check(Elf_Ehdr *ehdr) { - return (IS_ELF(*ehdr)); + if (!(IS_ELF(*ehdr))) + { + printk("DOM0 image is not a Xen-compatible Elf image.\n"); + return 0; + } + return 1; } static void copy_memory(void *dst, void *src, int size) -- 2.30.2